:root {
  --primary-color: #6366F1;
  --error-color: #EF4444;
  --border-radius: 8px;
  --font-size: 14px;
  --line-height: 1.5;
}

body {
  font-family: sans-serif;
  font-size: var(--font-size);
  line-height: var(--line-height);
  width: 360px;
  padding: 1rem;
  background-color: #f9fafb;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h1 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin: 0;
  text-align: center;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="number"] {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius);
}

input:focus {
  outline: 2px solid var(--primary-color);
  border-color: transparent;
}

small {
  font-size: 0.875rem;
  color: #6b7280;
}

.status-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#status-indicator {
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-weight: bold;
}

.status-idle {
  color: #374151;
  background-color: #e5e7eb;
}

.status-running {
  color: #166534;
  background-color: #d1fae5;
}

.status-error {
  color: #991b1b;
  background-color: #fee2e2;
}

.button-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #4f46e5;
}

button:active {
  background-color: #818cf8;
}

#stop-btn {
  background-color: #f59e0b;
}

#stop-btn:hover {
  background-color: #d97706;
}

#reset-btn {
  background-color: #ef4444;
}

#reset-btn:hover {
  background-color: #dc2626;
}

footer details {
  cursor: pointer;
}

.advanced-info {
  padding: 0.5rem;
  background-color: #e5e7eb;
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
}

.advanced-info p {
  margin: 0.25rem 0;
}